//
//  NWNewsRequest.m
//  KuWoCan
//
//  Created by hwd on 17/3/22.
//  Copyright © 2017年 hwd. All rights reserved.
//

#import "NWNewsRequest.h"

@implementation NWNewsRequest

//新闻列表
- (void)startRequestGetNewsListWithDelFlag:(NSString *)delFlag pageNo:(NSString *)pageNo pageSize:(NSString *)pageSize
{
    _showError = YES;
    _showLoading = YES;
    _path = NWGetNewsList_Path;
    
    NSMutableDictionary *dic = [[NSMutableDictionary alloc]initWithDictionary:@{@"delFlag":delFlag,@"pageNo":pageNo,@"pageSize":pageSize}];
    
    _params = dic;
    [self startGet];
}

//广告新闻

- (void)startRequestGetBanner
{
    _showError = NO;
    _showLoading = NO;
        _path = NWGetNewsBanner_Path;

    [self startGet];
}

//新闻详情
- (void)startRequestGetNewsDetailWithDelFlag:(NSString *)delFlag id:(NSString *)id
{
    _showError = YES;
    _showLoading = YES;
    _path = NWGetNewsDetail_Path;
    
    NSMutableDictionary *dic = [[NSMutableDictionary alloc]initWithDictionary:@{@"delFlag":delFlag,@"id":id}];
    
    _params = dic;
    [self startGet];
}

@end
